// 1 模拟函数返回的 源码情况 

function a() {
    return {
        name:'cluo',
        age:18
    }
}


let vuecomponent1 = a()
 
let vuecomponent2 = a()

let vuecomponent3 = a()
 
vuecomponent1.name='梅西' 

console.log(vuecomponent1)
console.log(vuecomponent2)
console.log(vuecomponent3)





// 2 对象写法 
const obj = {
    name:'cluo',
    age:18
}

function a() {
    return obj 
}



let vuecomponent1 = a()
 
let vuecomponent2 = a()
 
let vuecomponent3 = a()
 
vuecomponent1.name='梅西' 

console.log(vuecomponent1)
console.log(vuecomponent2)
console.log(vuecomponent3)
